s="bracket"
g++ -o m3 mk.cpp -O2
g++ -o d3 d_$s.cpp -O2 -std=c++14
g++ -o a3 $s.cpp -std=c++14 -O2 -static
t=1
while true;do
    ./m3
    ./a3
    ./d3
    if diff -Z $s.out $s.ans;then
        echo AC $t;
    else echo WA on test $t;break;
    fi
    let t++
done